<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTestingAdvicesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('testing_advice', function (Blueprint $table) {
            $table->increments('id')->commonet('主键');
            $table->Integer('tid')->default(0)->comment('测评id');
            $table->double('range_value')->default(0)->comment('测评值');
            $table->string('operate_type',1)->nullable()->comment('操作类型');
            $table->string('note',400)->nullable()->comment('操作类型');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('testing_advice');
    }
}
